package com.aabte.lota.auth.common.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/4/1
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class BaseEntity<T extends Model<?>> extends Model<T> implements Serializable {

  @TableField(value = "create_by", fill = FieldFill.INSERT)
  private String createBy;

  @TableField(value = "create_time", fill = FieldFill.INSERT)
  private LocalDateTime createTime;

  @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
  private String updateBy;

  @TableField(value = "update_Time", fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updateTime;
}
